<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.10.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: VarList: Class TVarList</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="TVarList"></a><h1 class="cio">Class TVarList</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#@Description">Description</a></td><td><a class="section"  href="#@Hierarchy">Hierarchy</a></td><td><a class="section"  href="#@Fields">Fields</a></td><td><a class="section"  href="#@Methods">Methods</a></td><td><a class="section"  href="#@Properties">Properties</a></td></tr></table>
<a name="@Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a   href="VarList.html">VarList</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TVarList = class(TObjectList)</code></p>
<h2 class="description">Description</h2>
<p>
TVarList contains a list of variables (<a class="normal"  href="VarList.TVar.html">TVar</a>), which can be referenced by an instruction (see <a class="normal"  href="Instruction.TVarRef.html">Instruction.TVarRef</a>). It also has an event to control the creation of new parameters (see <a class="normal"  href="VarList.TVarList.html#OnVarListChange">OnVarListChange</a>).</p>
<a name="@Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObjectList</li>
<li class="thisitem">TVarList</li></ul><h2 class="overview">Overview</h2>
<a name="@Fields"></a><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="VarList.TVarList.html#Parser">Parser</a></b>: Pointer;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code><b><a   href="VarList.TVarList.html#FParamCount">FParamCount</a></b>: Integer;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code><b><a   href="VarList.TVarList.html#OnVarListChange">OnVarListChange</a></b>: <a   href="VarList.html#TVarListChange">TVarListChange</a>;</code></td>
</tr>
</table>
<a name="@Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>function <b><a   href="VarList.TVarList.html#GetVars">GetVars</a></b>(Index: Integer): <a   href="VarList.TVar.html">TVar</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><code>procedure <b><a   href="VarList.TVarList.html#SetVars">SetVars</a></b>(Index: Integer; const Value: <a   href="VarList.TVar.html">TVar</a>);</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>Constructor <b><a   href="VarList.TVarList.html#Create">Create</a></b>(AParentParser: Pointer);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a   href="VarList.TVarList.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="VarList.TVarList.html#Add">Add</a></b>(pVarName: String; pValue: <a   href="ResConst.html#TFloat">TFloat</a>; pDesc: String; pVProtected: Boolean): <a   href="VarList.TVar.html">TVar</a>; overload;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="VarList.TVarList.html#SetDesc">SetDesc</a></b>(VarName: String; ADesc: String): Boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="VarList.TVarList.html#SetValue">SetValue</a></b>(VarName: String; AValue: <a   href="ResConst.html#TFloat">TFloat</a>): Boolean;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="VarList.TVarList.html#IndexOf">IndexOf</a></b>(pVarName: String): Integer;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="VarList.TVarList.html#ReferenceOf">ReferenceOf</a></b>(pVarName: String): <a   href="VarList.TVar.html">TVar</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="VarList.TVarList.html#NotifyParameters">NotifyParameters</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="VarList.TVarList.html#NotifyClear">NotifyClear</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="VarList.TVarList.html#Exists">Exists</a></b>(pVarName: String): Boolean;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="VarList.TVarList.html#PackNotify">PackNotify</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="VarList.TVarList.html#ResetRefCount">ResetRefCount</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="VarList.TVarList.html#Clear">Clear</a></b>; Override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>class function <b><a   href="VarList.TVarList.html#IsValidName">IsValidName</a></b>(VarName: String): Boolean;</code></td>
</tr>
</table>
<a name="@Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="VarList.TVarList.html#Vars">Vars</a></b>[Index: Integer]: <a   href="VarList.TVar.html">TVar</a> read <a   href="VarList.TVarList.html#GetVars">GetVars</a> write <a   href="VarList.TVarList.html#SetVars">SetVars</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="VarList.TVarList.html#ParamCount">ParamCount</a></b>: Integer read <a   href="VarList.TVarList.html#FParamCount">FParamCount</a>;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="Parser"></a><code><b>Parser</b>: Pointer;</code></td>
</tr>
<tr><td colspan="2">
<p>
Reference to parent parser</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="FParamCount"></a><code><b>FParamCount</b>: Integer;</code></td>
</tr>
<tr><td colspan="2">
<p>
Number of parameters (= unprotected vars)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="OnVarListChange"></a><code><b>OnVarListChange</b>: <a   href="VarList.html#TVarListChange">TVarListChange</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="GetVars"></a><code>function <b>GetVars</b>(Index: Integer): <a   href="VarList.TVar.html">TVar</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="protected.gif" alt="Protected" title="Protected"></a></td>
<td class="itemcode"><a name="SetVars"></a><code>procedure <b>SetVars</b>(Index: Integer; const Value: <a   href="VarList.TVar.html">TVar</a>);</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>Constructor <b>Create</b>(AParentParser: Pointer);</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Add"></a><code>function <b>Add</b>(pVarName: String; pValue: <a   href="ResConst.html#TFloat">TFloat</a>; pDesc: String; pVProtected: Boolean): <a   href="VarList.TVar.html">TVar</a>; overload;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SetDesc"></a><code>function <b>SetDesc</b>(VarName: String; ADesc: String): Boolean;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SetValue"></a><code>function <b>SetValue</b>(VarName: String; AValue: <a   href="ResConst.html#TFloat">TFloat</a>): Boolean;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IndexOf"></a><code>function <b>IndexOf</b>(pVarName: String): Integer;</code></td>
</tr>
<tr><td colspan="2">
<p>
Obtain var list index of variable</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ReferenceOf"></a><code>function <b>ReferenceOf</b>(pVarName: String): <a   href="VarList.TVar.html">TVar</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Obtain TVar instance of variable</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="NotifyParameters"></a><code>procedure <b>NotifyParameters</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Sends add event for all parameters</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="NotifyClear"></a><code>procedure <b>NotifyClear</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Sends clear event</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Exists"></a><code>function <b>Exists</b>(pVarName: String): Boolean;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PackNotify"></a><code>procedure <b>PackNotify</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Remove unreferenced variables and notigy them</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ResetRefCount"></a><code>procedure <b>ResetRefCount</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Reset reference counter for all variables</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Clear"></a><code>procedure <b>Clear</b>; Override;</code></td>
</tr>
<tr><td colspan="2">
<p>
Delete all parameters (but no protected vars)</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IsValidName"></a><code>class function <b>IsValidName</b>(VarName: String): Boolean;</code></td>
</tr>
<tr><td colspan="2">
<p>
Checks for valid variable name</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Vars"></a><code>property <b>Vars</b>[Index: Integer]: <a   href="VarList.TVar.html">TVar</a> read <a   href="VarList.TVarList.html#GetVars">GetVars</a> write <a   href="VarList.TVarList.html#SetVars">SetVars</a>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ParamCount"></a><code>property <b>ParamCount</b>: Integer read <a   href="VarList.TVarList.html#FParamCount">FParamCount</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Number of parameters</p>
</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.10.0</a> on 2007-09-13 21:24:25</em>
</span>
</body></html>
